package com.bw.product.controller;

import com.bw.common.core.domain.Result;
import com.bw.common.core.web.controller.BaseController;
import com.bw.common.security.annotation.RequiresPermissions;
import com.bw.product.domain.PmsSkuSaleAttrValue;
import com.bw.product.service.PmsSkuSaleAttrValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * sku销售属性&值Controller
 */
@RestController
@RequestMapping("/PmsSkuSaleAttrValue")
public class PmsSkuSaleAttrValueController extends BaseController
{
    @Autowired
    private PmsSkuSaleAttrValueService pmsSkuSaleAttrValueService;



    /**
     * 根据id获取sku销售属性&值详细信息
     */
  @RequiresPermissions("product:PmsSkuSaleAttrValue:query")
    @GetMapping(value = "/{id}")
    public Result<PmsSkuSaleAttrValue> getInfo(@PathVariable("id") Long id)
    {
       PmsSkuSaleAttrValue pmsSkuSaleAttrValue=pmsSkuSaleAttrValueService.selectPmsSkuSaleAttrValueById(id);
       return Result.success(pmsSkuSaleAttrValue);
    }



}
